(function() {
  var __hasProp = {}.hasOwnProperty,
    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

  this.AdminResponseEditModel = (function(_super) {

    __extends(AdminResponseEditModel, _super);

    function AdminResponseEditModel() {
      return AdminResponseEditModel.__super__.constructor.apply(this, arguments);
    }

    AdminResponseEditModel.prototype.defaults = {
      ResponseId: 0,
      Content: '',
      DateOfPublish: '',
      BookId: 0,
      UserId: 0,
      SuccessMessage: ''
    };

    AdminResponseEditModel.prototype.url = function() {
      var url;
      url = SiteMap.Admin.Responses.Edit + "?responseId=" + this.attributes.ResponseId;
      return encodeURI(url);
    };

    AdminResponseEditModel.prototype.parse = function(response) {
      return {
        Content: response.Content,
        DateOfPublish: response.DateOfPublishAsString,
        BookId: response.BookId,
        UserId: response.UserId,
        SuccessMessage: response.SuccessMessage
      };
    };

    return AdminResponseEditModel;

  })(Backbone.Model);

}).call(this);
